package com.testitems.controller.user.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <pre>
 *
 * </pre>
 *
 * @author gfh
 * @create 2021/11/20
 */
@Data
@ApiModel
@Api(tags = "用户信息更新")
public class UserUpdateRequest {


    @ApiModelProperty("姓名")
    @Size(min = 1, max = 50, message = "姓名长度必须在 1 - 50 之间")
    @NotNull
    private String name;

    @ApiModelProperty("密码")
    @Size(min = 6, max = 16, message = "密码长度必须在 6 - 16 之间")
    private String password;

    @ApiModelProperty("角色 2管理员，3员工")
    @NotNull
    private Integer roleLevel;

    @ApiModelProperty("账号状态")
    @NotNull
    private Boolean status;
}
